﻿using System.Runtime.Serialization;

namespace TheVerge.Base {
	[DataContract]
	public class ArticleEntry : Entry {
		[DataMember(Name = "author_name")]
		public string AuthorName { get; set; }

		[DataMember(Name = "body")]
		public string Body { get; set; }

		[DataMember(Name = "type")]
		public string EntryType { get; set; }

		[DataMember(Name = "label")]
		public string Label { get; set; }

		[DataMember(Name = "number_of_comments")]
		public int NumberOfComments { get; set; }

		[DataMember(Name = "source_list")]
		public Source[] SourceList { get; set; }

		[DataMember(Name = "via_list")]
		public Source[] ViaList { get; set; }

		[DataMember(Name ="summary")]
		public string Summary { get; set; }
	}

	[DataContract]
	public class Source {
		[DataMember(Name = "name")]
		public string Name { get; set; }
		
		[DataMember(Name = "url")]
		public string Url { get; set; }
	}
}
